package com.twotwoshop.fegin.api.user.fallback;


import com.twotwoshop.domin.common.dtos.ResponseResult;
import com.twotwoshop.domin.common.enums.AppHttpCodeEnum;
import com.twotwoshop.fegin.api.user.IUserClient;
import org.springframework.stereotype.Component;

/**
 * 获取用户信息服务降级
 */
@Component
public class IUserClientFallback implements IUserClient {


    /**
     * 获取用户信息服务降级
     *
     * @return
     */
    @Override
    public ResponseResult getUserInfoById(Long id) {
        return ResponseResult.errorResult(AppHttpCodeEnum.DATA_NOT_EXIST, "获取用户数据失败");
    }
}
